﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using ESRI.ArcGIS.esriSystem;
using hzGis.service.impl;

namespace hzGis
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            LicenseService.init();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            String[] CmdArgs = System.Environment.GetCommandLineArgs();
            string code = "";
            if (CmdArgs.Length > 1)
            {
                code = CmdArgs[1];
                //MessageBox.Show(CmdArgs[1]);
            }
            // code = "hzgis://177/";
            if (code == "")
            {
                MessageBox.Show("当前程序无法直接启动，请通过用地报批系统启动！");
            }
            else
            {
                Application.Run(new YdbpWin(code));
               // Application.Run(new DlHyWin());
            }
        }

    }
}
